/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.pretorius.question3.crpViolation.service.impl;

import java.math.BigDecimal;
import java.math.MathContext;
import za.ac.cput.pretorius.question3.crpViolation.model.Account;
import za.ac.cput.pretorius.question3.crpViolation.service.GenerateIntrestCertificateService;

/**
 *
 * @author griddy
 */
public class GenerateIntrestCertificateServiceImpl implements GenerateIntrestCertificateService {

    @Override
    public boolean produceCertificate(Account acc) {
        if(acc == null)
            return false;
        else
        {
            System.out.println("Your bonus interest on your "+ acc.getAccountType() +" account calculates to R"+ acc.calculateBonusInterest());
            return true;
        }
    }

   


    
}
